package com.zhoutao123.spring.boot.starter;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "spring.seka")
public class SekaConfig {

  public static void main(String[] args) {
    int x = main2(args);
    System.out.println(x);
  }

  public static int main2(String[] args) {
    try {
      return 1 / 0;
    } catch (Exception e) {
      return 2;
    } finally {
      return 3;
    }
  }

  private String name = "sekaApplication";

  private String host = "localhost";

  private int port = 8090;
}
